import request from '@/utils/request'

export function getOrderInfo(params: any) {
  return request({
    url: '/business/orderInfo',
    method: 'get',
    params,
  })
}

export function saveOrderInfo(data: any) {
  return request({
    url: '/business/saveOrderInfo',
    method: 'post',
    data,
  })
}

export function OrderTaskSetSave(data: any) {
  return request({
    url: '/Worktask/OrderTaskSetSave',
    method: 'post',
    data,
  })
}

export function confirmInvoicing(data: any) {
  return request({
    url: '/business/confirmInvoicing',
    method: 'post',
    data,
  })
}

export function saveOrderProduct(data: any) {
  return request({
    url: '/business/saveOrderProduct',
    method: 'post',
    data,
  })
}

export function deleteProduct(data: any) {
  return request({
    url: '/business/deleteProduct',
    method: 'post',
    data,
  })
}

export function saveOrderGift(data: any) {
  return request({
    url: '/business/saveOrderGift',
    method: 'post',
    data,
  })
}

export function deleteGift(data: any) {
  return request({
    url: '/business/deleteGift',
    method: 'post',
    data,
  })
}

export function savePayments(data: any) {
  return request({
    url: '/business/savePayments',
    method: 'post',
    data,
  })
}

export function saveInvoicing(data: any) {
  return request({
    url: '/business/saveInvoicing',
    method: 'post',
    data,
  })
}

export function doEdit(data: any) {
  return request({
    url: '/business/doEdit',
    method: 'post',
    data,
  })
}

export function saveDomain(data: any) {
  return request({
    url: '/business/saveDomain',
    method: 'post',
    data,
  })
}

export function doTrusteeship(data: any) {
  return request({
    url: '/business/order/create/doTrusteeship',
    method: 'post',
    data,
  })
}

export function EditLicenses(data: any) {
  return request({
    url: '/customer/EditLicenses',
    method: 'post',
    data,
  })
}

export function doDelete(data: any) {
  return request({
    url: '/business/order/create/doDelete',
    method: 'post',
    data,
  })
}
export function modPaymentFile(data: any) {
  return request({
    url: '/Business/modPaymentFile',
    method: 'post',
    data,
  })
}
